/*
 * This file is part of ksPlatform
 * 
 * Copyright (c) 2014-2015
 * 
 * This file is dual-licensed under the AGPLv3 (http://www.gnu.org/licenses/agpl-3.0.html) 
 * 
 * If you are unsure which license is appropriate for your use, please contact the sales department
 * at 97041437@qq.com.
 */
package cn.com.ksplatform.base.dao;

import org.springframework.jdbc.core.JdbcOperations;

import cn.com.ksplatform.base.hibernate.dialect.IDialect;
import cn.com.ksplatform.base.page.PageInfoModel;

public interface IBaseJdbcDAO extends JdbcOperations{
	/**
	 * 分页行数
	 * @param dialect
	 * @param sql
	 * @param pim
	 * @param params
	 * @return
	 */
	public PageInfoModel queryPage(IDialect dialect,String sql,PageInfoModel pim,Object[] params);
	/**
	 * 分页
	 * @param dialect
	 * @param sql
	 * @param pim
	 * @return
	 */
	public PageInfoModel queryPage(IDialect dialect,String sql,PageInfoModel pim);
}
